<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/css/bootstrap.min.css">
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <style>
        a{
            text-decoration: none;
        }
        .row > ul > li{
            text-align: center;
        }
        .row > ul > li:hover{
            background: #169ed8;
        }
        form{
            margin: 30px 0 0 0;
        }
        .b2t{
            display: flex;
            flex-direction: row-reverse;
        }
        .b2t>*{
            margin: 5px;
            width: 100px;
            height: 30px;
        }
    </style>
</head>
<body>
<div class="row">
    <jsp:include page="leftbar.jsp"/>
    <div class="col-10">
        <div>
            <form method="post" class="col-10" enctype="multipart/form-data" action="${pageContext.request.contextPath}/affair/save/${user.id}">
                <div class="input-group mb-3">
                    <span class="input-group-text">昵称</span>
                    <input type="text" class="col-2" name="nickname" placeholder="请输入昵称" value="${user.nickname}">
                </div>
                <div class="input-group mb-3">
                    <span class="input-group-text">性别</span>
                    <input type="text" class="col-2" name="gender" placeholder="请输入性别" value="${user.gender}">
                </div>
                <div class="input-group mb-3">
                    <span class="input-group-text">密码</span>
                    <input type="password" class="col-2" name="password" placeholder="请输入密码" value="">
                </div>
                <label>头像
                    <input type="file" name="image">
                </label>
                <div class="b2t col-10">
                    <input type="submit">
                    <input type="reset">
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>